<template>
	<view class="container">
		<view class="tipBox">
			<view class="text f28 c666">系统会在每天凌晨2:00自动生成日报数据</view>
		</view>
		<view class="dailyList">
			
			<view class="daily-item" v-for="(item,index) in dailyList" :key="index" @tap="goDaily(item.name)">
				<view class="time f32 c333">{{item.name}}日报</view>
				<view class="arrow">
					<image src="../../../static/images/arrow_right.png" mode="aspectFit"></image>
				</view>
			</view>
			
	</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				dailyList:[
					{
						name:'2020-03-01'
					},
					{
						name:'2020-03-02'
					},
					{
						name:'2020-03-03'
					},
					{
						name:'2020-03-04'
					}
				]
			};
		},
		onLoad() {
			
		},
		methods:{
			goDaily(date){
				uni.navigateTo({
					url:'./dailynews?date='+JSON.stringify(date)
				})
			}
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #F7F4F8;
	}
	.tipBox{
		padding: 25upx;
	}
	.dailyList{
		background-color: $white-background;
		.daily-item{
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			border-bottom: 2upx #eee solid;
			padding: 30upx;
			.arrow{
				image{
					width: 20upx;
					height: 35upx;
				}
			}
		}
	}
</style>
